<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>	
		<js href="__PUB__/ueditor/ueditor.config.js" />
		<js href="__PUB__/ueditor/ueditor.all.min.js" />
		<script>
		    $(function(){
		        var ue = UE.getEditor('Editcontainer',{
		            serverUrl :'{:U('Manager/Say/ueditor')}',
		            initialFrameHeight:120,
		            toolbars: [["emotion","forecolor"]],
		        });
		    })
		</script>
	</head>
	<body>	
	<h6><kbd>&nbsp;不爽就发表条说说吧&nbsp;</kbd></h6>
	<form  method="post" action="{:U(MODULE_NAME.'/Say/createHandle')}" enctype="multipart/form-data" >
			 	<div class="thumbnail">
									  <script id="Editcontainer" name="content" type="text/plain">
				     					 {$blog.content}
				    					</script>
				</div><br />
				<div class="form-group">
		        				<a class="btn btn-success" >上传封面图片</a>
		        			<input name="file" type="file" id="file" class="transFile" />
		        			<img style="height:150px;width:200px" src="" class="thumbnail pull-right viewFengMian" />
		        			</div>
		        			
				<input type="submit" class="btn btn-lg btn-danger col-lg-2" value="立刻发表" />
					</form>
	</body>		
	<script>
    //上传图片显示图片
    $("#file").change(function(e)
    {
    	var files=this.files;
    	var read=new FileReader();
				read.readAsDataURL(files[0]);
				read.onloadend=function()
				{
					$('.viewFengMian').attr("src",this.result);
				}
    })
</script>
</html>
